package com.mes.cloud.dao;

import com.mes.cloud.api.dto.request.position.SysPositionOrgAuthRequest;
import com.mes.cloud.entity.SysPositionChannelType;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;

/**
 * 岗位客户类型中间表
 *
 * @author xy
 * @version 2019-08-06 16:39:01
 * @email yuan.xue3@pactera.com
 */
public interface SysPositionChannelTypeDao extends SelectByIdsMapper<SysPositionChannelType>, Mapper<SysPositionChannelType> {

    List<SysPositionChannelType> findAllChannelType(SysPositionChannelType sysPositionChannelType);
    /**
     * <功能详细描述>
     *
     * @param sysPositionChannelType
     * @return int
     * @author xy
     * @date 2019/8/6 17:03
     */
    int batchInsert(List<SysPositionChannelType> sysPositionChannelType);

    /**
     * <根据岗位id更新>
     *
     * @param sysPositionOrgAuthRequest
     * @return int
     * @author xy
     * @date 2019/8/8 15:23
     */
    int updateByPositionId(SysPositionOrgAuthRequest sysPositionOrgAuthRequest);
}
